import { MpRequest } from '../mp-index'
// eslint-disable-next-line
export const getActivityDetail = (activity_id) => {
  // eslint-disable-next-line
  return MpRequest.sendRequest('get', '/activity/detail', { activity_id })
}
// eslint-disable-next-line
export const getAuthToken = (activity_id) => {
  // eslint-disable-next-line
  return MpRequest.sendRequest('get', '/auth/token', { activity_id })
}

export function userLogin (code) {
  return MpRequest.sendRequest('post', '/user/login', { code }, { withOutLogin: true })
}
